import request from '/@/utils/request'

export function getRoleList(params?: any) {
  return request({
    url: '/sys/getRoleList',
    method: 'get',
    params,
  })
}
export function doRoleEdit(data: any) {
  return request({
    url: '/sys/roleEdit',
    method: 'post',
    data,
  })
}

export function roleDelete(params?: any) {
  return request({
    url: '/sys/roleDelete',
    method: 'get',
    params,
  })
}

export function doRolePermission(data: any) {
  return request({
    url: '/sys/rolePermissionEdit',
    method: 'post',
    data,
  })
}

export function getDepartmentList(params?: any) {
  return request({
    url: '/sys/getDepartmentList',
    method: 'get',
    params,
  })
}
export function doDepartmentEdit(data: any) {
  return request({
    url: '/sys/departmentEdit',
    method: 'post',
    data,
  })
}

export function departmentDelete(params?: any) {
  return request({
    url: '/sys/departmentDelete',
    method: 'get',
    params,
  })
}

export function getVerifyList(params?: any) {
  return request({
    url: '/sys/getVerifyList',
    method: 'get',
    params,
  })
}
export function verifyDelete(params?: any) {
  return request({
    url: '/sys/verifyDelete',
    method: 'get',
    params,
  })
}
export function doVerifyEdit(data: any) {
  return request({
    url: '/sys/verifyEdit',
    method: 'post',
    data,
  })
}

export function getMenuList(params?: any) {
  return request({
    url: '/sys/getMenuList',
    method: 'get',
    params,
  })
}
export function menuDelete(params?: any) {
  return request({
    url: '/sys/menuDelete',
    method: 'get',
    params,
  })
}
export function doMenuEdit(data: any) {
  return request({
    url: '/sys/menuEdit',
    method: 'post',
    data,
  })
}
